package com.szml.logging.mapper;

import com.szml.logging.entity.OperationLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author limin
 * @date 2025-06-21 17:39
 * @description
 */
@Mapper
public interface LoggingMapper {

    /**
     * 将tag为register的log，插入operation_logs_register表
     * @param log
     * @return
     */
    int insertRegisterLog(OperationLog log);

    /**
     * 将tag为login的log，插入operation_logs_login表
     * @param log
     * @return
     */
    int insertLoginLog(OperationLog log);

    /**
     * 将tag为update的log，插入operation_logs_update表
     * @param log
     * @return
     */
    int insertUpdateLog(OperationLog log);
}
